﻿<%@ Page Title="编辑案例" Language="C#" MasterPageFile="~/Masters/Account.Master" AutoEventWireup="true"
    ValidateRequest="false" CodeBehind="ProjectEdit.aspx.cs" Inherits="LEARNREN.COM.WebSite.Administrator.ProjectEdit" %>

<%@ Register Src="../UserDefinedControls/SelectCatalogueDropDownList.ascx" TagName="SelectCatalogueDropDownList"
    TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="../Scripts/Includes/themes/base/green.css" rel="stylesheet" type="text/css" />
    <link href="../Scripts/Includes/themes/base/ui.datepicker.css" rel="stylesheet" type="text/css" />
    <script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
    <script src="../Scripts/jquery-ui-1.7.custom.min.js" type="text/javascript"></script>
    <script src="../Scripts/Includes/ui.datepicker-zh-CN.js" type="text/javascript"></script>
    <script src="../editor/ckeditor.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        $(
        function () {
            $.datepicker.setDefaults($.extend({ showMonthAfterYear: false }, $.datepicker.regional['']));
            $("#<%=this.ProjectDateTextBox.ClientID %>").datepicker($.datepicker.regional['zh-CN']);
        }
        );
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:ScriptManager runat="server" ID="ScriptManager1">
    </asp:ScriptManager>
    <div class="commonContent">
        <fieldset class="changePassword">
            <legend>编辑案例</legend>
            <p>
                <asp:Label ID="ProjectNameLabel" runat="server" AssociatedControlID="ProjectNameTextBox">案例名称:</asp:Label>
                <asp:TextBox ID="ProjectNameTextBox" CssClass="textEntry" runat="server"></asp:TextBox><asp:RequiredFieldValidator
                    ID="ProjectNameRequired" runat="server" ControlToValidate="ProjectNameTextBox"
                    CssClass="failureNotification" ErrorMessage="必须填写“案例名称”。" ToolTip="必须填写“案例名称”。"
                    ValidationGroup="ProjectEditValidationGroup">*</asp:RequiredFieldValidator>
            </p>
            <asp:UpdatePanel runat="server" ID="UpdatePanel1">
                <ContentTemplate>
                    <p>
                        <label>
                            所属栏目:</label>
                        <uc1:SelectCatalogueDropDownList ID="SelectCatalogueDropDownList1" runat="server" />
                    </p>
                </ContentTemplate>
            </asp:UpdatePanel>
            <p>
                <asp:Label ID="ProjectImageLabel" runat="server" AssociatedControlID="ProjectImageFileUpLoad">案例图片:</asp:Label>
                <asp:FileUpload ID="ProjectImageFileUpLoad" CssClass="textEntry" runat="server">
                </asp:FileUpload><asp:Label ID="lblNotice" runat="server" Text="不修改请留空" ForeColor="Red"
                    Visible="false"></asp:Label>
            </p>
            <p>
                <asp:Label ID="ProjectDateLabel" runat="server" AssociatedControlID="ProjectDateTextBox">案例时间:</asp:Label>
                <asp:TextBox ID="ProjectDateTextBox" CssClass="textEntry" runat="server"></asp:TextBox>
            </p>
            <p>
                <asp:Label ID="ProjectDiscriptionLabel" runat="server" AssociatedControlID="txtProjectDiscription">详细描述:</asp:Label>
                <asp:TextBox ID="txtProjectDiscription" runat="server" TextMode="MultiLine" CssClass="ckeditor">
                </asp:TextBox>
            </p>
            <p class="submitButton">
                <asp:Button ID="CancelPushButton" runat="server" CausesValidation="False" CommandName="Cancel"
                    Text="取消" />
                <asp:Button ID="btnSave" ValidationGroup="ProjectEditValidationGroup" runat="server"
                    CommandName="Save" Text="保存" OnClick="btnSave_Click" />
            </p>
        </fieldset>
    </div>
</asp:Content>
